(C) 1996 AROS - The Amiga Replacement OS


NAME
#include <stdlib.h>
void * calloc()
SYNOPSIS
size_t count
size_t size

FUNCTION
Allocate size bytes of memory, clears the memory (sets all bytes to 0) and returns the address of the first byte.

INPUTS
count
How many time size
size
How much memory to allocate.
RESULT
A pointer to the allocated memory or NULL. If you don't need the memory anymore, you can pass this pointer to free(). If you don't, the memory will be freed for you when the application exits.

NOTES
EXAMPLE
BUGS
SEE ALSO
free(), malloc()
INTERNALS
HISTORY
12.12.1996 aros
Use memset() to clean the memory area (faster code)
10.12.1996 aros
Moved #include into first column to allow makedepend to see it.
19.10.1996 aros
New functions: realloc(), memcpy() and calloc()